//
//  StaffLogic.h
//  QRMaster
//
//  Created by myApple on 15/12/21.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GroupModel.h"

@interface GroupLogic : NSObject

typedef void(^arrBlock)(NSMutableArray * arr);
/**
 *  插入集群信息
 *
 *  @param model                 集群model
 *  @param communityId           集群ID号
    @param groupClient_timestamp 组内客户时间戳
 */
-(void)insertGroupData:(GroupModel *)model withCommuntiyId:(NSString *)communityId groupClient_timestamp:(NSString *)groupClient_timestamp;

/**
 *  模型转化为字典
 *
 *  @param communityId 集群ID
 *
 *  @param groupId     组ID
 */
-(void)deleteGroupInfo:(NSString *)groupId withCommunityId:(NSString *)communityId;

/**
 *  模型转化为字典
 *
 *  @param communityId 集群ID
 *
 *  @param guestId     组ID
 *
 *  @param dic         组需要更新的键值对
 */
-(void)updateGuestInfo:(NSString *)groupId communityId:(NSString *)communityId dic:(NSMutableDictionary *)dic;
/**
 *  根据集群id删除该集群下组信息
 *
 *  @param communityId 集群ID
 *
 */
-(void)deleteGroupInfo:(NSString *)communityId;

/**
 *  根据集群id删除该集群下组信息
 *
 *  @param communityId 集群ID
 *
 * @param arrBlock   接收数组
*/
-(void)queryGroupInfo:(NSString *)communityId block:(arrBlock)arrBlock;

@end
